package com.rsk.shiro.jwt;

import org.apache.shiro.authc.AuthenticationToken;

//这个就类似UsernamePasswordToken
public class JwtToken implements AuthenticationToken {

	private static final long serialVersionUID = 1L;
	private String jwt;

	public JwtToken(String jwt) {
		this.jwt = jwt;
	}
	
	@Override//类似是用户名
	public Object getPrincipal() {
		return jwt;
	}
	
	@Override//类似密码
	public Object getCredentials() {
		return jwt;
	}
	//返回的都是jwt
}
